package com.zhuiyun.educations.api.sysuserback.service;

import com.zhuiyun.educations.api.sysuserback.entiy.DTO.SysUserBackUpdatePasswordDTO;
import com.zhuiyun.educations.api.sysuserback.entiy.SysUserBack;
import com.zhuiyun.educations.api.sysuserback.entiy.vo.SysUserBackVo;
import com.zhuiyun.educations.common.response.CommonResult;
import com.zhuiyun.educations.util.pageUtil.PageRequest;
import com.zhuiyun.educations.util.pageUtil.PageResult;

/*/**
* @Author MJL
* @Description 
* @Date 2023/6/15 15:48
* @Return  * @param null
*/
public interface SysUserBackService{
    /*/**
    * @Author MJL
    * @Description todo 登录
    * @Date 2023/6/15 16:05
    * @Return com.zhuiyun.educations.common.response.CommonResult * @param sysUserBack
    */
    CommonResult login(SysUserBack sysUserBack);

    /**
    * @Author MJL
    * @Description todo 用户表全查
    * @Date 2023/6/15 19:38
    * @Return  * @param null
    */
    PageResult userList(SysUserBackVo sysUserBackVo, PageRequest pageRequest);

    /**
    * @Author MJL
    * @Description todo 用户表添加
    * @Date 2023/6/16 9:15
    * @Return  * @param null
    */
    int SysUserAdd(SysUserBack sysUserBack);

    /**
    * @Author MJL
    * @Description todo 用户表逻辑删除
    * @Date 2023/6/16 13:49
    * @Return  * @param null
    */
    int SysUserDelete(Integer id);

    /**
    * @Author MJL
    * @Description todo 用户表修改
    * @Date 2023/6/16 14:39
    * @Return  * @param null
    */
    int SysUserUpdate(SysUserBack sysUserBack);

    /**
    * @Author MJL
    * @Description todo 用户表修改密码
    * @Date 2023/6/20 8:58
    * @Return  * @param null
    */
    Integer SysUserUpdatePassword(SysUserBackUpdatePasswordDTO sysUserBackUpdatePasswordDTO);

    /**
    * @Author MJL
    * @Description todo 根据用户名查询是否重复
    * @Date 2023/6/30 9:01
    * @Return  * @param null
    */
    CommonResult repeatUserLoginName(String userLoginName);

    /**
    * @Author MJL
    * @Description todo 用户表分配权限
    * @Date 2023/7/5 14:33
    * @Return  * @param null
    */
    int userAssignmentRole(SysUserBack sysUserBack);
}
